﻿using System;

namespace NJabber.Client
{
    public class PresenceSubscriptionRequest
    {
        private JID entityJid;

        public PresenceSubscriptionRequest(JID entityJid)
        {
            this.entityJid = entityJid;
        }

        public JID EntityJid
        {
            get { return entityJid; }
        }

        public void Approve()
        {
            if (Approved != null) Approved(this, EventArgs.Empty);
        }

        public void Deny()
        {
            if (Denied != null) Denied(this, EventArgs.Empty);
        }

        internal event EventHandler Approved;
        internal event EventHandler Denied;
    }
}
